package com.ccit.greenlife.pojo;

import java.util.List;

public class PageBean<T> {
    private List<T> items;      // 当前页的数据
    private long totalRecords;   // 总记录数
    private int totalPages;      // 总页数
    private int PageNum;     // 当前页码
    private int pageSize;        // 每页大小

    public PageBean() {
    }

    public PageBean(List<T> items, long totalRecords, int totalPages, int pageNum, int pageSize) {
        this.items = items;
        this.totalRecords = totalRecords;
        this.totalPages = totalPages;
        PageNum = pageNum;
        this.pageSize = pageSize;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public long getTotalRecords() {
        return totalRecords;
    }

    public void setTotalRecords(long totalRecords) {
        this.totalRecords = totalRecords;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getPageNum() {
        return PageNum;
    }

    public void setPageNum(int pageNum) {
        PageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
